#include <iostream>
#include <stdio.h>
using namespace std;

int main(int argc, char const *argv[])
{
    cout << "start" << endl;
    uint32_t x = 0x12345678;
    uint8_t  r = x >> 16;
    uint8_t  g = x >> 8;
    uint8_t  b = x;
    printf("= %x\r",x);
    printf("= %x\r",r);
    printf("= %x\r",g);
    printf("= %x\r",b);
    return 0;
}